package com.smart.home.context;

//作用用于在每个线程中存储和获取当前线程所关联的 Long 类型的 ID 具体使用不清楚
public class UserContext {
    public static ThreadLocal<Long> throwable = new ThreadLocal<>();


    public static void setUserId(Long userId) {throwable.set(userId);}

    public static Long getUserId() {return throwable.get();}

     public static void clear() {throwable.remove();}


}
